import Http from './http.js'
export default{
    listCourse(page,typ){
      return Http.get("api/course/listCourse",{"type":typ});
    },
    listTypes(){
      return Http.get("api/course/listTypes",{});
    },
    updataUserInfo(param){
      return Http.post("api/user/login",param)
    },
    commentSubmit(param){
      return Http.post("api/comment/submit",param)
    },
    listComment(id){
      return Http.post("api/comment/list",{"id":id})
    },
    listOffline(id){
      return Http.get("api/socket/listOffline")
    }
}